﻿Imports System.ComponentModel.DataAnnotations
Imports System.ComponentModel.DataAnnotations.Schema
Imports System.Runtime.Serialization

Public Class Category
    Public Property CategoryId As Integer
    Public Property Name As String
    Public Property Description As String
End Class

Public MustInherit Class Tag
    Public Property TagId As Integer
    <Required> <MaxLength(50)>
    Public Property Name As String
End Class

Public Class JobTag
    Inherits Tag
    <Required>
    Public Property JobId As Integer
    Public Overridable Property Job As Job
End Class

Public Class ScriptTag
    Inherits Tag
    <Required>
    Public Property ScriptId As Integer
    Public Overridable Property Script As Script
End Class
